package com.java.base.exercise.designmode.guanchazhe;

/**
 * @Author RenPu
 * @Date 2021/12/16 11:17
 * @Version 1.0
 * @Description: 根据用户id值，进行业务摇号主流程的实现
 **/
public class MinibusTargetServiceV1 {
    public String lottery(String uId){
        return Math.abs(uId.hashCode())%2==0?"恭喜你，编码".concat(uId).concat("在本次摇号中签"):
                "恭喜你，编码".concat(uId).concat("在本次摇号中签");
    }
}
